package com.taiyuan.zfmvp.Dynamic.service.impl;

import com.github.pagehelper.Page;
import com.taiyuan.zfmvp.Dynamic.dao.TestIdCardMapper;
import com.taiyuan.zfmvp.Dynamic.model.TestIdCard;
import com.taiyuan.zfmvp.Dynamic.service.TestIdCardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @param request
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:
 * @Date 2022/2/2
 * @return
 */
@Service
public class TestIdCardServiceImpl implements TestIdCardService {

    @Resource
    private TestIdCardMapper testIdCardMapper;

    /**
     * @param id
     * @Author zhoufang@si-tech.com.cn
     * @Description 查询id信息
     * @Date 2022/2/2
     * @Param
     * @Return
     */
    @Override
    public TestIdCard getIdCardInfo(int id) {
        return testIdCardMapper.selectByPrimaryKey(id);
    }

    /**
     * @param paramMap
     * @Author zhoufang@si-tech.com.cn
     * @Description 列表查询
     * @Date 2022/2/12
     * @Param
     * @Return
     */
    @Override
    public Page<TestIdCard> qryCardLst(Map<String, String> paramMap) {
        Page<TestIdCard> testIdCards = testIdCardMapper.getTestList(paramMap);
        return testIdCards;
    }
}
